﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhukoff.SolutionPackagerGUI
{
    class ComandLineArgument
    {
        public string Name { get; set; }
        public string Value { get; set; }

        public ComandLineArgument(string name)
        {
            this.Name = name;
        }

        public ComandLineArgument(string name, string value)
        {
            this.Name = name;
            this.Value = value;
        }

        public override string ToString()
        {
            var result = "";
            if (!String.IsNullOrEmpty(Value) && !String.IsNullOrEmpty(Name))
            {
                result = "/" + Name + ":" + Value;
            }
            else
            {
                result = "/" + result;
            }
            return result;
        }
    }
}